/**
 * 
 */
package com.celephais.common.server.JDOPersistence;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 * @author Eugene Shen
 * 
 */
public class PMF {
	
	private static PersistenceManagerFactory factory = null;
	
	// Don't try to create one of these; just use getFactory() to fetch
	// the singleton.
	private PMF() {
	}
	
	public static PersistenceManagerFactory getFactory() {
		if (factory == null) {
			factory =
				JDOHelper.getPersistenceManagerFactory("transactions-optional");
		}
		return factory;
	}
}
